<div class="container"> 
<!-- middle -->
<div id="middle" class="cols2">
    <div class="content" role="main">
		<!-- add comment -->
        <div class="add-comment" id="addcomments">
			<h3>Update Training</h3>                
			<div class="comment-form">
			<?=form_open_multipart('training/update','id="commentForm"');?>
            <?=form_hidden('id',$post['training_id'])?>
            
                <div class="row field_select">
                    <label class="label_title"><strong>Category:</strong></label>
                     <?=form_dropdown('category',$cat,$post['training_category'],'id="categorys" class="select_styled"')?>
                </div>
                
                <div class="row field_text">
					<label class="label_title"><strong>Title</strong></label>
					<input type="text" name="title" value="<?=$post['training_title']?>" style="width:500px" class="inputtext input_large required">
                </div>
				
                <div class="row field_select">
                    <label class="label_title"><strong>Date:</strong></label>
                     <?=form_dropdown('day',config_item('day'),$post['day'],'id="day" style="width:40px" class="select_styled"')?>
                     <?=form_dropdown('month',config_item('month'),$post['month'],'id="month" style="width:40px" class="select_styled"')?>
                     <?=form_dropdown('year',config_item('year'),$post['year'],'id="year" style="width:80px" class="select_styled"')?>
                </div>
				
				<div class="row field_textarea">
                    <label class="label_title"><strong>Content</strong></label>
					 <?php
						$CKEditor = ckEditor();
						$CKEditor->basePath = base_url().APPPATH.'third_party/ckeditor/';
					 ?>		
                     <?=$CKEditor->editor("content",$post['training_content'])?>
                </div>
                                
                <div class="row rowSubmit">
                    <input type="submit" value="Save" class="btn-submit" />
                </div>
            </form>
			</div>
        </div>
		<!--/add comment -->
	</div>
    <!--/ content -->
    
    <!-- sidebar -->
    <div class="sidebar">

		<div class="widget-container widget_nav_menu">
        	<img src="images/icons/icons_16_menu.png" alt="" class="widget_icon">
           		<h3 class="widget-title">TRAINING CATEGORIES</h3>
                    <ul>
                        <?php foreach($categories as $row):?>                       		
                            <li><a href="<?=site_url('training/categories/'.$row['category_id'].'/'.seoUrl($row['category_name']))?>"><span><?=$row['category_name']?></span></a></li> 
                        <?php endforeach;?>
                        <?php //$categories->free_result(); ?>    
                            <!--<li><a href="shortcodes-text.html"><span>Text & Images</span></a></li>
                            <li><a href="shortcodes-charts.html"><span>Charts</span></a></li>  
                            <li><a href="shortcodes-columns.html"><span>Columns</span></a>
                            	<ul>
									<li><a href="shortcodes-columns-full.html"><span>Full width page</span></a></li>  
									<li><a href="shortcodes-columns-full2.html"><span>Full width with Gallery</span></a></li>  
								</ul>
                            </li>  
                            <li><a href="shortcodes-lightbox.html"><span>Lightbox</span></a></li>
                            <li><a href="shortcodes-media.html"><span>Videos & Galleries</span></a></li>
                            <li><a href="shortcodes-maps.html"><span>Google Maps</span></a></li>
                            <li><a href="shortcodes-tabs.html"><span>Tabs and Toggles</span></a></li>
                            <li><a href="shortcodes-tables.html"><span>Boxes & Tables</span></a></li>                            
                            <li class="current-menu-item"><a href="shortcodes-typography.html"><span>Typography</span></a></li>
                            <li><a href="shortcodes-widgets.html"><span>Widgets</span></a></li>-->
                    </ul>
		</div> 
                    
    </div>
    <!--/ sidebar -->
    
    <div class="divider"></div>
    
    
        	
</div>
<!--/ middle --> 
</div>
<!--/ container --> 